PExit();
Caution: No prompt for unsaved or changed publications. Unlike
its menu counterpart, the PExit command does not warn you if you have not
saved the latest changes to a publication, nor does it prompt you to name
an unnamed publication. Use the PSave or PSaveAs
commands if you want to save changes to the open publications.
You should use this command only in very unusual circumstances, after making sure it is the only course of action. In general a plug-in should not terminate PageMaker, as this is usually inconsistent with users' expectations of how the application should work.
Example. The following example exits PageMaker.
PExit();
Adobe PageMaker 6.5 Help > Commands > File > Exit
Comments or suggestions? Contact Adobe Developer Support